# coding=utf-8
"""
Author: Mr.夏末
@Function: excel数据驱动
"""
from class11.webkeys import Web

cases = [
            [
                ['', '登录失败', '', '', '', '', '', '', ''],
                ['', '', '打开浏览器', 'openbrowser', '', '', '', '', ''],
                ['', '', '进入登录页面', 'get_url','http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '',''],
                ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''],
                ['', '', '输入密码', 'input', '//*[@id="password"]', '1234561', '', '', ''],
                ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
                ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''],
                ['', '', '等待', 'sleep', '1', '', '', '', ''],
                ['', '', '获取提示', 'get_text', '//*[@id="layui-layer1"]/div[2]', '', '', '', '']
            ],[
                ['', '登录成功', '', '', '', '', '', '', ''],
                ['', '', '进入登录页面', 'get_url','http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '',''],
                ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '',''],
                ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''],
                ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
                ['', '', '点击登录', 'click1', '//*[@id="loginform"]/div/div[6]/a', '', '', '','']
            ]
        ]

# web = Web()
